package com.genexususa.eo.bing.data;

public class GxException extends Exception {
    private GxItemException[] exceptions;

    public GxException(int resultQuantity) {
        this.exceptions = new GxItemException[resultQuantity];
        for (int i=0; i<resultQuantity; i++) {
            this.exceptions[i] = null;
        }
    }

    public GxItemException[] getExceptions() {
        return exceptions;
    }

    public void addException(GxItemException itemException, int index) {
        this.exceptions[index] = itemException;
    }
}
